package com.umeng.analytics.pro;

import android.content.Context;

public final class ar implements au {
    private au a;
    private Context b;
    private static ar c;

    private ar(Context arg3) {

        this.b = arg3;
        this.a = new aq(this.b);
    }

    public final aq a(Context arg2) {
        synchronized (this) {
            return (aq) this.a;
        }
    }

    public final void a() {
        bz.b(new cb() {
            @Override
            public void a() {
                ar.a(ar.this).a();
            }
        });
    }

    static au a(ar arg1) {
        return arg1.a;
    }

    public final void a(au arg1) {
        this.a = arg1;
    }

    public final void a(final Object arg2) {
        bz.b(new cb() {
            @Override
            public void a() {
                ar.a(ar.this).a(arg2);
            }
        });
    }

    public final void b() {
        bz.c(new cb() {
            @Override
            public void a() {
                ar.a(ar.this).b();
            }
        });
    }

    public static ar b(Context arg2) {
        ar v0_1;
        Class v1 = ar.class;
        synchronized (v1) {
            if (ar.c == null && arg2 != null) {
                ar.c = new ar(arg2);
            }

            v0_1 = ar.c;
        }
        return v0_1;
    }
}

